package cn.stronglink.assetmanage.business.task.presenter;

import java.util.List;

import cn.stronglink.assetmanage.business.task.model.TaskWaitModel;
import cn.stronglink.assetmanage.business.task.view.wait.TaskWaitView;
import cn.stronglink.assetmanage.entity.Task;

/**
 * Created by chencongcong on 2018/6/18.
 */

public class TaskWaitPresenter {
    private TaskWaitModel taskWaitModel;
    private TaskWaitView taskWaitView;

    public TaskWaitPresenter(TaskWaitModel taskWaitModel, TaskWaitView taskWaitView) {
        this.taskWaitModel = taskWaitModel;
        this.taskWaitView = taskWaitView;
    }

    /**
     * 初始化未完成数据
     */
    public void initWaitTaskData() {
        List<Task> waitTaskList = taskWaitModel.getWaitList();
        taskWaitView.setTaskListData(waitTaskList);
    }
}
